package com.lylg.picture_share.dao;

import com.github.pagehelper.PageInfo;
import com.lylg.picture_share.entity.Manager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ManagerMapper {
    public Manager selectByNameAndPwd(@Param("mname") String manager_name, @Param("mpwd") String manager_pwd);
    public List<Manager> selectManagerAll();

    public Integer deleteManager(Integer manager_id);
    public Manager selectByName(String name);
    public void insertManager(Manager manager);

    PageInfo<Manager> getManagers(Manager manager, Integer currentPage, Integer pageSize);
    public void updPwd(Integer managerId, String manager_pwd);
    public List<Manager> selectManagers(Manager manager);

    void updatePwd(@Param("mid") Integer managerId, @Param("mpwd") String manager_pwd);

    void updStatus(Integer user_id);

    void saveManager(Manager manager);

    void restPWd(@Param("mid") Integer managerId,@Param("mpwd") String manager_pwd);

    Manager selectManagerByNP(String manager_name, String manager_pwd);
}
